#!/usr/bin/env python
# coding=utf-8
# __author__ = 'Yunchao Ling'

import sys
reload(sys)
sys.setdefaultencoding("utf-8")
from bs4 import BeautifulSoup
import requests

def Get_HTML(url):
    r=requests.post(url)
    outfile = open("file_html", "w")
    outfile.write(r.text)
    outfile.flush()
    outfile.close()
    r.close()

def Get_PDF_URL(file):
    soup=BeautifulSoup(file,"html.parser")
    url=soup.find_all(attrs={"class":"download-option articlepdf"})
    return url

if __name__ == "__main__":
    Get_HTML(sys.argv[1])
